var express = require('express');
var app = express();

/* 静态托管文件 */
app.use('/logic',express.static('views-logic'));
app.use('/static',express.static('public'));

/* 模板引擎 */
app.set('view engine','ejs');
app.use(express.static(__dirname+'/views'));

app.get("/",function(req,res) {
    res.render("demo/index");
});
app.get("/socket",function(req,res) {
    res.render("demo/socket");
});
app.get("/demo/list",function(req,res) {
    res.render("demo/list");
});

app.listen(8010);